GBML manual / Constants

BLEND_FADE_DOWN

A fade toward the bottom: a see-through thing shows fully at the top of the screen and fades away down to the bottom.

Works differently on Game Boy - A blend look on the Game Boy decides how often a see-through sprite is drawn on each row and fades a see-through picture in bands; see screen_blend.

Works differently on Game Boy Color - A blend look on the Game Boy Color decides how often a see-through sprite is drawn on each row and how much a see-through picture fades; see screen_blend.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BLEND_FADE_DOWN: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the fade toward the bottom, for screen_blend. A see-through thing - a mist picture, a ghost picture, a dark room's shroud - shows fully on the top row of the screen and fades away a little more on every row below it. A mist that is thick at the top and clears toward the floor is the picture to have in mind.

strength is how far it fades by the last row: 1 leaves about two thirds of it, 2 leaves a little over a third, and 3 fades it away to nothing.

A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_FADE_DOWN at strength 1, 2 and 3 (the darkness is thickest at the top of the screen and fades toward the bottom, and at strength 3 there is none left at the bottom)A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_FADE_DOWN at strength 1, 2 and 3 (the darkness is thickest at the top of the screen and fades toward the bottom, and at strength 3 there is none left at the bottom)
A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLENDFADEDOWN at strength 1, 2 and 3 (the darkness is thickest at the top of the screen and fades toward the bottom, and at strength 3 there is none left at the bottom)

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

This look stands still, so speed does nothing for it.

In a dark room the look keeps the room's own darkness: it is a shape laid on the number you set, so the screen is on average as dark as the room says and the look moves the darkness around (no row is darker than black). In a room that is not dark the look's own numbers are what decide.

Example

shade = background_create(0, 0, ts_doc_dungeon);
background_see_through(shade, true);
background_priority(shade, 0);
screen_blend(BLEND_FADE_DOWN, 2, 0);

A mist that is thick at the top of the screen and thins out toward the floor. Call it once, for example when the room starts - it keeps going by itself until you call screen_blend(BLEND_NONE, 0, 0) or a room is loaded.

See also: screen_blendBLEND_NONEBLEND_FADE_UP